home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: ddvictor.dundee.ATTGIS.COM!news
- From: Robin Paterson <Robin.Paterson@dundee.attgis.com>
- Subject: Re: Compiler Q.
- X-Nntp-Posting-Host: 153.73.1.248
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <313CD343.21F1@dundee.attgis.com>
- Sender: news@ddvictor.dundee.ATTGIS.COM (Ref news)
- Content-Transfer-Encoding: 7bit
- Organization: NCR (AT&T GIS ?)
- References: <1995Jul21.151901.17243@marcam.com> <19950724.112633.57@jporritt.demon.co.uk> <1995Jul24.171318.27480@marcam.com> <dqua.806794299@nntp.earthlink.net> <danpop.806891085@rscernix> <3vav0h$2be@lastactionhero.rs.itd.umich.edu> <danpop.807028022@rscernix> <Pine.BSI.3.91.960301022134.2506A-100000@river.biddeford.com>
- Mime-Version: 1.0
- Date: Tue, 5 Mar 1996 23:50:27 GMT
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Wayne Ward wrote:
- > 1. What are the "standard system directories"? Fundamentally, /usr/include for headers and /usr/lib
- for libraries. This *will* vary depending on the
- platform you're on, what development system you use,
- and who installed it.
-
- > 2. Where is this list of directories? If you're using GNU C/C++, if you do a simple
- compile, say 'hello world', and compile with -v
- the compiler will tell you where it looks for things
- by default. (These paths are built in to the compiler)
-
- > When I compile a program I enter "-L" to include a path to use. Is there
- > some sort of file I can put this path in that the compiler will search?
-
- Yes. It's called a Makefile :-)
- -L is actually the flag to specify the path for
- other libraries.
-
- > I'am trying to compile my first motif program which gets an error that
- > tells me that an include file can not be found <Xm/PushB.h>. When I add
- > -I /usr/X11R6/include/Xm, i still get the error. How do I correct this?
- > Is there any other documentation,beside the man page, that would help me
- Try using -I/usr/X11R6/include, this way the subdirectory
- 'Xm' will be found in /usr/X11R6/include, which will enable
- the location of Xm/PushB.h (assuming PushB.h resides in
- /usr/X11R6/include/Xm & Xm resides in /usr/X11R6/include)
-
- Any book on writing C, any book on writing X apps,
- the GNU C/C++ Compiler manual.
-
- From the general content of your post, it would appear
- you're lacking a good book. Aside from obtaining copies
- of the GNU C/C++ manual and the GNU make manual, could I
- perhaps put in a plug for 'A Book on C' by Kelley & Pohl.
- This has nice bits about simple makefiles and libraries,
- as well as being a good C reference book.
-
- ---+--- ---+---
- Robin Paterson email: Robin.Paterson@dundee.attgis.com
- NCR (AT&T GIS ?) voice: 44 1382 592470 (GMT+0)
- 'Defy the logic of Alphabets' - Zodiac Mindwarp
- ---+--- ---+---
-